<?php
header("content-type:text/html;charset=utf8");
$ids=$_GET['ids'];
$con = mysqli_connect('localhost','root','root','shop');
$res = mysqli_query($con,"select * from scenics where id in($ids)");
$arr=[];
while($row=mysqli_fetch_assoc($res)){
    $arr[]=$row;
};
echo json_encode([
    "meta"=>[
        "status"=>1,
        "msg"=>"获取成功"
    ],
    "data"=>$arr
]);